home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / ip / ka9q / xobbs.arc / trigger.c < prev    next >
C/C++ Source or Header  |  1989-05-03  |  571b  |  24 lines

  1. /*TRIGGER.C module to trigger forwarding session on XOBBS.*/
  2. /* Jim Durham,W2XO 10-24-88*/
  3. /* Version 1.0 */
  4. /* Code released to the amateur radio community */
  5.  
  6.  
  7. #include "xobbs.h"
  8.  
  9. main()
  10. {
  11.     int fd;
  12.     int scmsgqid;
  13.     
  14.     if((fd = open(FWDTMP,O_RDONLY,0666)) < 1){
  15.         printf("Trigger: Can't Open Forwarding Temp File\n");
  16.         exit(1);
  17.     }
  18.     read(fd,&scmsgqid,sizeof(scmsgqid));
  19.     msg.mtext[0] = 'F';
  20.     msg.mtype = (long)1;
  21.     if((msgsnd(scmsgqid,&msg,sizeof(scmsgqid),0600)) < 0)
  22.         perror("trigger:Sending F Message:");
  23. }
  24.